Repository navigation
v0.5.31 — Order-dependent features benchmark (Loop 13) - #141
Merged
Merged
Conversation
Added dipeptide-order features for sequence-order awareness. dipeptide_order_score achieves AUROC 0.7861 on AMP-vs-scrambled discrimination — the strongest order-dependent feature, beating hydrophobic moment (0.7483). Only 7/31 features survive scrambling; all composition features are exactly position-independent (0.5000). Changes: src/openamp_foundry/features/dipeptide.py — new: dipeptide module src/openamp_foundry/features/dipeptide_log_odds.json — pre-computed ref src/openamp_foundry/features/physchem.py — add dipeptide_order_score src/openamp_foundry/features/__init__.py — export new functions scripts/benchmark_order_dependent.py — new: scrambling analysis Makefile — bench-order-dependent .github/workflows/ci.yml — informational CI step docs/50_LOOP_PLAN.md — Loop 13 marked complete docs/METRICS_CURRENT.md — order-dependence section docs/ROADMAP.md — v0.5.31 entry
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Class
Benchmark honesty / scientific credibility (Priority 1)
Why it matters
The pipeline's strict triage AUROC (0.572) showed it's predominantly composition-based. We didn't know WHICH features depend on sequence order, or whether order-dependent features could improve discrimination. This benchmark answers both questions.
Key findings
Changes
src/openamp_foundry/features/dipeptide.py— new module: dipeptide frequencies + order score with pre-computed log-odds referencesrc/openamp_foundry/features/dipeptide_log_odds.json— 400-entry reference for AMP-vs-scrambled discriminationsrc/openamp_foundry/features/physchem.py— dipeptide_order_score added to compute_features() (31st scalar feature)src/openamp_foundry/features/__init__.py— exports for new modulescripts/benchmark_order_dependent.py— analyzes which features survive scramblingMakefile—make bench-order-dependenttarget.github/workflows/ci.yml— informational CI stepdocs/50_LOOP_PLAN.md— Loop 13 ✅docs/METRICS_CURRENT.md— Order-Dependent Features Benchmark sectiondocs/ROADMAP.md— v0.5.31 entryVerification
Risk / uncertainty
Next loop
Loop 14 — Cross-dataset generalization (train on APD6, test on DRAMP or vice versa)